<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>我的订单-订单列表</title>
<link rel="stylesheet" href="__PUBLIC__/Mobile/css/zhanghou.css">
<script src="__PUBLIC__/Mobile/js/jquery-1.9.1.js"></script>
<script src="__PUBLIC__/Common/Layer/layer.js"></script>
</head>

<body >
<section>
<!--我的订单-->
<div class="lm" style="position:fixed;">
  <a href="javascript:history.back(-1);">
    <img src="__PUBLIC__/Mobile/images/return.png" style="height:22px; padding-left:3%; line-height:22px; width:6%; padding-top:2%;" class="left">
  </a>
    <span class="left size20" style="width:85%;">我的订单 </span>
</div>
<div class="Order-form s" style="position:fixed; margin-top: 49px; width:100%;">
	<a href="{:U('Order/order_list')}" class="hover">全部</a>
	<a href="{:U('Order/payment_list')}">待付款</a>
	<a href="{:U('Order/receipt_goods')}">待收货</a>
	<a href="{:U('Order/payments_waite')}">待评价</a>
<!--   <a href="#">退货/换货</a> -->
</div>

<div class="shopping-cart" style="padding-top:120px;">
<script>
  $(function(){
    
      $('.margin-top').each(function(){
          var  goods_num = 0;
          $(this).find('.goods_num').each(function(){
            goods_num += parseInt($(this).val());
          });
          $(this).find('.jian_nub').html(goods_num);
      })
  })
</script>
<form action="__SELF__" method="POST">
<div style="text-align:center;">
<h1>退货原因</h1>
<br/>
  <textarea name="tuihuo_case" style="width:80%; height:150px;">{$result.tuihuo_case}</textarea>
  <input type="hidden" name="orders_id" value="{$_GET['orders_id']}" />
<br/>
<if condition="$result.tuihuo_time == ''">
  <input name="submit" type="submit" value="提 交" style="padding:5px 30px; margin-top:10px;">
</if>
</div>
</form>




<include file="Public:footer_orders" />



<script>
  function del(a){
    $.ajax({
      data:"id="+a,
      type:"POST",
      url:"{:U('Order/cancel_order')}",
      success:function(msg){
       if(msg == 1){
          parent.layer.msg('操作成功',{icon:1,time:1000},function(){
            window.location.reload();
          });
       }else{
          parent.layer.msg('操作失败',{icon:2,time:2000})
       }

      }
    });
  }
</script>
<script>
  function show_info(a,b){
    parent.layer.open({
      type: 2,
      shadeClose: true,
      shade: 0.2,
      area: ['325px', '480px'],
      title: '查询快递单号',
      content: '__ROOT__/kuaidi/get.php?com='+a+'&nu='+b,
    });
  }             
</script>
</div>
</section>
</body>
</html>
